package day10;

public class Test1 {
    public static void main(String[] args) {
        System.out.println("返回的值为："+new Test1().test());
    }
    public int test() {
        int i = 1;
        try {
            System.out.println("try中的i值为："+i);
            return i;
        }finally {
            ++i;
            System.out.println("finally中的值为："+i);
        }
    }
}
